package service;

import dao.AdminUserDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import pojo.User;

import java.util.List;

@Service("adminUserService")
@Transactional
public class AdminUserService {
    @Autowired
    private AdminUserDao adminUserDao;
    public List<User> sAU(){return adminUserDao.selectAllUser();}
    public int dU(Integer uid){return adminUserDao.deleteOneUser(uid);}
    public List<User> sOU(Integer uid){return adminUserDao.selectOneUser(uid);}
}
